import 'package:flutter/material.dart';

class ScaffoldPage extends StatelessWidget {
  final Widget child;
  ScaffoldPage({@required this.child});

  @override
  Widget build(BuildContext context) {
    MediaQueryData mediaQueryData = MediaQuery.of(context);
    double contentHeight = mediaQueryData.size.height - mediaQueryData.padding.top;
    return Scaffold(
      body: SafeArea(
        child: Container(
          height: contentHeight,
          decoration: BoxDecoration(
            gradient: RadialGradient(colors: [Color.fromARGB(255, 26,88,139), Color.fromARGB(255, 28,82,129), Color.fromARGB(255, 4,63,119)])
          ),
          child: SingleChildScrollView(
            child: Container(
              height: contentHeight,
              child: child,
            )
          )
        ),
      )
    );
  }
}